package com.xiaomaoguai.eventbus.multi;

import com.google.common.eventbus.Subscribe;

/**
 * @Description :
 * @FileName: MultipleListener.java
 * @Author :WeiHui.Zhang
 * @Data : 2015年6月18日 下午3:15:18
 * @Version:V1.00
 */
public class MultipleListener {

	public Integer lastInteger;
	public Long lastLong;

	@Subscribe
	public void listenInteger(Integer event) {
		lastInteger = event;
		System.out.println("Recvice Integer:" + lastInteger);
	}

	@Subscribe
	public void listenLong(Long event) {
		lastLong = event;
		System.out.println("Recvice Long:" + lastLong);
	}

	public Integer getLastInteger() {
		return lastInteger;
	}

	public Long getLastLong() {
		return lastLong;
	}
}
